
<header class="single-header">
	<a href="javascript:history.go(-1)" class="return"></a>
	<p>凑单</p>
</header>
<main class = "single-main">
	<ul>
		<li ng-repeat="item in goods">
			<h4 ng-init = "bol = false" ng-class="{true:'single-option',false:'single_h4'}[bol]" ng-click = "bol = !bol; jiadan(item)"></h4>
			<img ng-src="{{item.icon}}" alt="">
			<div>
				<p>{{item.goodsName}}</p>
				<p class="operation"><span class="reduce" ng-click = "sub(item)">-</span><span class="shopNum">{{item.cnt}}</span><span class="plus" ng-click = "add(item)">+</span></p>
				<span class="single-price">￥{{(item.price*100)*(item.cnt)/100||item.price}}</span>
			</div>
		</li>
	</ul>
</main>
<div class="single-footer">
	<article>
		<h4  ng-init = "bol1 = false" ng-class="{true:'single-option',false:'single_h4'}[bol1]" ng-click = "bol1 = !bol1"></h4>
		<p>全选</p>
	</article>
	<p>还差：<span>￥<span class="sumPrice" ng-bind="allPrice()"></span></span></p>
	<button><a ui-sref="cart" ng-click = "add_shopcar()">加入购物车</a></button>
</div>